﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Libs.Db;

namespace Libs.HR
{
    public class EmployeeReport
    {
        public int ReportID { get; set; }
        public int ReportTime { get; set; }
        public string Name { get; set; }
        public int Value { get; set; }
        public DateTime LogTime { get; set; }
        public int ReturnValue { get; set; }

        public EmployeeReport()
        {

        }

        ~EmployeeReport()
        {

        }

        public virtual void Dispose()
        {

        }

        public DataTable TList(int reportTime)
        {
            DbHelper db = new DbHelper(Config.HRConnectionStrings);
            return db.GetDataTableSP("sp_EmployeeReport_SelectList",
                new SqlParameter("@ReportTime", reportTime));
        }
    }
}
